
<h3 class="heading">
    <?php echo UserModule::t("Workshift list", array(), 'workshift'); ?>
</h3>

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'type' => 'striped bordered condensed',
    'template' => "{items}\n{pager}",
    'columns' => array(
        array(
            'name' => 'title',
            'value' => '$data->title'
        ),
        array(
            'name' => 'from_time',
            'value' => '$data->from_time',
            'htmlOptions' => array('style' => 'text-align:right;')
        ),
        array(
            'name' => 'to_time',
            'value' => '$data->to_time',
            'htmlOptions' => array('style' => 'text-align:right;')
        ),
        array(
            'name' => 'wage',
            'value' => '$data->wage',
            'htmlOptions' => array('style' => 'text-align:right;')
        ),
        array(
            'class' => 'CButtonColumn',
            'template' => '{update}',
        ),
    ),
));
?>